/*
 * Copyright 2003-2005 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

#ifndef METAABSTRACT_H_
#define METAABSTRACT_H_

#ifdef __cplusplus
extern "C" {
#endif

extern type_name meta_abstract_name;

typedef struct meta_abstract
{
	meta_expression expression;
	intmap concreteToMap;
} meta_abstract;


void meta_abstract_init( meta_abstract * ma );

void meta_abstract_add_map( meta_abstract * ma, int concreteId, int mapId );

int meta_abstract_is_mapped( meta_abstract * ma, int id );

int meta_abstract_do_write( type_output_stream * out, void * o, type_element * element );
	
int meta_abstract_do_read( type_input_stream * in, type_element * element );

int meta_abstract_read( type_input_stream * in, type_element * element);
	
int meta_abstract_write( type_output_stream * out, void * o, type_element * element );	

void * meta_abstract_construct( type_library * library, void ** objects, int size );

#ifdef __cplusplus
}
#endif


#endif
